﻿
namespace com.fukefu
{
    public partial class InputBox : BaseForm
    {
        private InputBox()
        {
            InitializeComponent();
        }
        //显示InputBox
        public static string ShowInputBox(string url)
        {
            InputBox input = new InputBox();
            //输入框获取焦点
            input.textBox1.Focus();
            input.SetControl("vcode", ControlValue.PictureBox, new source.Source().GetImage(url));
            //刷新
            input.vcode.Click += delegate
            {
                input.SetControl("vcode", ControlValue.PictureBox, new source.Source().GetImage(url));
            };
            //对话框模式显示窗口
            input.ShowDialog();
            //返回结果
            return input.textBox1.Text;
        }
    }
}
